package com.demo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 活动渠道_兑换码信息
 * </p>
 *
 * @author zhangyan
 * @since 2022-01-14
 */
@TableName("autodt_activity_channel_redeem_info")
public class ActivityChannelRedeemInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    private Long id;

    /**
     * 业务编号
     */
    @TableId(value = "activity_channel_redeem_info_id", type = IdType.ASSIGN_ID)
    private Long activityChannelRedeemInfoId;

    /**
     * 跨店活动编号
     */
    private Long acrossStoreActivityId;

    /**
     * 活动渠道编号
     */
    private String marketingChannelId;

    /**
     * 兑换码有效期开始时间
     */
    private LocalDateTime redeemStartTime;

    /**
     * 兑换码有效期结束时间
     */
    private LocalDateTime redeemEndTime;

    /**
     * 是否可以多次兑换0否1-是
     */
    private Integer redoFlag;

    /**
     * 兑换码状态-1作废0-草稿1进行中
     */
    private Boolean codeStatus;

    /**
     * 未兑换数量
     */
    private Integer unRedeem;

    /**
     * 发放数量
     */
    private Integer issueNum;

    /**
     * 发放类型1-创建2-增发
     */
    private Boolean issueType;

    /**
     * 删除标识0-否1-是
     */
    private Boolean deletedFlag;

    /**
     * 创建人名称
     */
    private String creator;

    /**
     * 创建人id
     */
    private String creatorId;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreated;

    /**
     * 修改人名称
     */
    private String modifier;

    /**
     * 修改人id
     */
    private String modifierId;

    /**
     * 修改时间
     */
    private LocalDateTime gmtModified;

    /**
     * 机构编号
     */
    private String orgId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getActivityChannelRedeemInfoId() {
        return activityChannelRedeemInfoId;
    }

    public void setActivityChannelRedeemInfoId(Long activityChannelRedeemInfoId) {
        this.activityChannelRedeemInfoId = activityChannelRedeemInfoId;
    }

    public Long getAcrossStoreActivityId() {
        return acrossStoreActivityId;
    }

    public void setAcrossStoreActivityId(Long acrossStoreActivityId) {
        this.acrossStoreActivityId = acrossStoreActivityId;
    }

    public String getMarketingChannelId() {
        return marketingChannelId;
    }

    public void setMarketingChannelId(String marketingChannelId) {
        this.marketingChannelId = marketingChannelId;
    }

    public LocalDateTime getRedeemStartTime() {
        return redeemStartTime;
    }

    public void setRedeemStartTime(LocalDateTime redeemStartTime) {
        this.redeemStartTime = redeemStartTime;
    }

    public LocalDateTime getRedeemEndTime() {
        return redeemEndTime;
    }

    public void setRedeemEndTime(LocalDateTime redeemEndTime) {
        this.redeemEndTime = redeemEndTime;
    }

    public Integer getRedoFlag() {
        return redoFlag;
    }

    public void setRedoFlag(Integer redoFlag) {
        this.redoFlag = redoFlag;
    }

    public Boolean getCodeStatus() {
        return codeStatus;
    }

    public void setCodeStatus(Boolean codeStatus) {
        this.codeStatus = codeStatus;
    }

    public Integer getUnRedeem() {
        return unRedeem;
    }

    public void setUnRedeem(Integer unRedeem) {
        this.unRedeem = unRedeem;
    }

    public Integer getIssueNum() {
        return issueNum;
    }

    public void setIssueNum(Integer issueNum) {
        this.issueNum = issueNum;
    }

    public Boolean getIssueType() {
        return issueType;
    }

    public void setIssueType(Boolean issueType) {
        this.issueType = issueType;
    }

    public Boolean getDeletedFlag() {
        return deletedFlag;
    }

    public void setDeletedFlag(Boolean deletedFlag) {
        this.deletedFlag = deletedFlag;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public LocalDateTime getGmtCreated() {
        return gmtCreated;
    }

    public void setGmtCreated(LocalDateTime gmtCreated) {
        this.gmtCreated = gmtCreated;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public String getModifierId() {
        return modifierId;
    }

    public void setModifierId(String modifierId) {
        this.modifierId = modifierId;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    @Override
    public String toString() {
        return "ActivityChannelRedeemInfo{" +
                "id=" + id +
                ", activityChannelRedeemInfoId=" + activityChannelRedeemInfoId +
                ", acrossStoreActivityId=" + acrossStoreActivityId +
                ", marketingChannelId=" + marketingChannelId +
                ", redeemStartTime=" + redeemStartTime +
                ", redeemEndTime=" + redeemEndTime +
                ", redoFlag=" + redoFlag +
                ", codeStatus=" + codeStatus +
                ", unRedeem=" + unRedeem +
                ", issueNum=" + issueNum +
                ", issueType=" + issueType +
                ", deletedFlag=" + deletedFlag +
                ", creator=" + creator +
                ", creatorId=" + creatorId +
                ", gmtCreated=" + gmtCreated +
                ", modifier=" + modifier +
                ", modifierId=" + modifierId +
                ", gmtModified=" + gmtModified +
                ", orgId=" + orgId +
                "}";
    }
}
